/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tpiprotocole;


/**
 * @date 10 mai 2011
 * @time 11:31:13
 * @author Luis.HAFNER
 */
public class LH {
   private static String NomProtocole ="LH";
   public static enum Codes {
	Connecter("100"),
	Deconnecter("200"),
	EnvoiTexte("300");

	private final String value;

	private Codes(String value) {
		this.value = value;
	}

	public String getValue() {
		return this.value;
	}
};


   public static String Connecter(String nom){
      return LH.NomProtocole+"100"+nom;
   }
   public static String Connecter_OK(){
      return LH.NomProtocole+"101";
   }
   public static String Connecter_KO(){
      return LH.NomProtocole+"102";
   }
   public static String Deconnecter(){
      return LH.NomProtocole+"200";
   }
   public static String EnvoiTexte(String texte){
      return LH.NomProtocole+"300"+texte;
   }
   public static String EnvoiTexte_OK(){
      return LH.NomProtocole+"301";
   }
   public static String EnvoiTexte_KO(){
      return LH.NomProtocole+"302";
   }
}
